<template>
  <div class="my-pannel">
    <h3 class="pannel-title">{{ title }}</h3>
    <div class="pannel-content">
      <slot>{{ body }}</slot>
    </div>
    <footer>
      <slot name="foot"></slot>
    </footer>
  </div>
</template>

<script>
export default {
  name: "MyPannel",
  props: {
    title: {
      type: String,
      default: "",
    },
    body: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="scss">
.my-pannel {
  width: 300px;
}
.pannel-title {
  font-size: 18px;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
  background: linear-gradient(#ccc, #eee, #ccc);
}
.pannel-content {
  padding: 10px 0;
  border: 1px solid #efefef;
}
</style>